//
/***********************************************************
             File name:      main.c
             Author:         Bitat (陆叁柒)
             Email :         Bitat@qq.com
             Gitee :         https://gitee.com/bitat
             CSDN  :         https://blog.csdn.net/bitat 
             History:        2023/2/7
************************************************************/
    

#include <stdio.h>

int main()
{
    int arr[10] = {0};
    int i = 0;
    int max = 0;
    int min = 0;

    printf("请输入10个数字:>");
    for(i = 0; i < 10; i++)
    {
        scanf("%d",&arr[i]);
    }
        max = arr[0];
        min = arr[0];
    for(i = 0; i < 10; i++)
    {
        if(arr[i] > max)
        {
            max = arr[i];
        }
        if(arr[i] < min)
        {
            min = arr[i];
        }
    }
    printf("最大值为:%d 最小值为:%d\n",max,min);
    return 0;
}
